int parseArgs(char* argstr, int (*callback)(int, char**));